package com.violet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.violet.domain.po.BuyOrder;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BuyOrderMapper extends BaseMapper<BuyOrder> {

    BuyOrder getByIdWithPessimisticLock(String id);

    BuyOrder getByIdAndUserIdWithPessimisticLock(String id, String userId);

}
